package componentes;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JPanel;
import net.miginfocom.swing.MigLayout;
import java.awt.Component;

/**
 * @author Reynald0
 */
public class CompPeriodos extends JPanel
{
   
   private  String[]     etiquetas ={"1","2","3","4","5","6","7"
                                     };
   private  String[]     posicion  ={"cell 0 0","cell 0 1","cell 0 2","cell 0 3","cell 0 4","cell 0 5","cell 0 6",
                                     };

   
  private JLabel[] periodos = new JLabel[etiquetas.length];
   
   public CompPeriodos(JPanel pPanel)
   {
      this.setLayout(new MigLayout("", "[10px,grow]", "[10px,grow,center][10px,grow][10px,grow][10px,grow][10px,grow][10px,grow][10px,grow]"));
      this.setBackground(Color.white);
      this.setAlignmentX(Component.RIGHT_ALIGNMENT);
      for(int i=0; i<periodos.length; i++)periodos[i]=new CompEtiqueta(this,etiquetas[i],posicion[i]);
      pPanel.add(this);
      if(pPanel != null) pPanel.add(this);
   }
   
}
